package com.iraeta.dao.main.basic;

import com.iraeta.entity.main.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDao {
    int insertStudent(Student student);
    int updateStudent(Student student);
    Student getStudentById(int stuId);
    List<Student> getStudentByCondition(@Param("name") String name,
                                        @Param("startDate") String startDate,
                                        @Param("endDate") String endDate);
    int deleteStudent(@Param("id") int id);
}
